﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1.studentUser
{
    public partial class index : System.Web.UI.Page
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            SqlDataSource1.SelectCommand = "SELECT student.name,student.no,student.class_name,dormitory.dormitory_number FROM `student`,dormitory where student.dormitory_id = dormitory.id and user_id = '" + Application["userId"] + "';";
        }


        protected void GridView2_RowCommand(object sender, GridViewCommandEventArgs e)
        {
           
            Response.Write("<script>alert('删除成功！')</script>");
        }

        protected void LinkButton1_Click(object sender, EventArgs e)
        {

        }

        protected void LinkButton1_Click1(object sender, EventArgs e)
        {
            string publishDate = ((LinkButton)sender).CommandArgument;
            Application["publishDate"] = publishDate;
            Server.Transfer("\\studentUser\\Notice.aspx");
        }
    }
}